package com.yoyo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(path = "/user")
public class UserController {

    @RequestMapping(path = "/login")
    public String login(){
        return "index";
    }

    @RequestMapping(path = "/404")
    public String exception(){return "/404";}
    @RequestMapping(path = "/500")
    public String exceptiontow(){return "/500";}
}
